package com.muyu.logbackdemo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.logbackdemo.entity.UserEntity;
import com.muyu.logbackdemo.repository.UserMapper;
import com.muyu.logbackdemo.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @ClassName: UserServiceImpl
 * @Author: Zirun.Xin
 * @Date: 2025/3/19 下午4:20
 * @Version: 1.0
 * @Description: 用户业务实现曾
 */
@Service
@RequiredArgsConstructor
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> implements UserService {

    /**
     * 用户持久层
     */
    private final UserMapper userMapper;

    /**
     * 获取用户信息
     * @return 用户信息集
     */
    @Override
    public List<UserEntity> getUserList() {
        return userMapper.list();
    }
}
